<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blogs/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blogs/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blogs/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blogs/images/apple-touch-icon.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/blogs/images/favicon-32x32.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/blogs/images/favicon-16x16.png?v=5.1.3">


  <link rel="mask-icon" href="/blogs/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Android," />










<meta name="description" content="AAChartCore的使用 1.为什么要用AAChartCore AAChartCore，是 AAChartKit 的 Java语言版本,是在流行的开源前端图表框架的基础上,封装的面向对象的,一组简单易用,极其精美的图表绘制控件.可能是这个星球上 UI 最精致的第三方 Android 开源图表框架了。  环境友好,兼容性强. 支持 Kotlin语言,配置简单.同时更有 Objective-C 版">
<meta property="og:type" content="article">
<meta property="og:title" content="AAChartCore的使用">
<meta property="og:url" content="https://louchaoyy.gitee.io/blogs/2022/03/11/AAChartCore%E7%9A%84%E4%BD%BF%E7%94%A8/index.html">
<meta property="og:site_name" content="Chao&#39;s blog">
<meta property="og:description" content="AAChartCore的使用 1.为什么要用AAChartCore AAChartCore，是 AAChartKit 的 Java语言版本,是在流行的开源前端图表框架的基础上,封装的面向对象的,一组简单易用,极其精美的图表绘制控件.可能是这个星球上 UI 最精致的第三方 Android 开源图表框架了。  环境友好,兼容性强. 支持 Kotlin语言,配置简单.同时更有 Objective-C 版">
<meta property="og:locale">
<meta property="article:published_time" content="2022-03-11T13:50:54.000Z">
<meta property="article:modified_time" content="2022-03-11T14:13:17.602Z">
<meta property="article:author" content="Chaoyxy">
<meta property="article:tag" content="Android">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Gemini',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://louchaoyy.gitee.io/blogs/2022/03/11/AAChartCore的使用/"/>





  <title>AAChartCore的使用 | Chao's blog</title>
  








<meta name="generator" content="Hexo 5.4.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blogs/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Chao's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blogs/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blogs/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blogs/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/03/11/AAChartCore%E7%9A%84%E4%BD%BF%E7%94%A8/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">AAChartCore的使用</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-03-11T21:50:54+08:00">
                2022-03-11
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/03/11/AAChartCore%E7%9A%84%E4%BD%BF%E7%94%A8/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/03/11/AAChartCore的使用/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id><a href="#" class="headerlink" title></a><blockquote class="blockquote-center"><p>AAChartCore的使用</p>
</blockquote></h2><h2 id="1-为什么要用AAChartCore"><a href="#1-为什么要用AAChartCore" class="headerlink" title="1.为什么要用AAChartCore"></a>1.为什么要用AAChartCore</h2><ul>
<li><p><strong>AAChartCore</strong>，是 <a target="_blank" rel="noopener" href="https://link.segmentfault.com/?enc=q98Xnh/mY12v0nVY29JPfw==.4Yro4Raqhw7uOzH0fxxXtIlsXzke72wz6C0Yr4JEuur7IRD04V6kLGpmCA1aXOBQ">AAChartKit</a> 的 <code>Java</code>语言版本,是在流行的开源前端图表框架的基础上,封装的面向对象的,一组简单易用,极其精美的图表绘制控件.可能是这个星球上 UI 最精致的第三方 Android 开源图表框架了。</p>
</li>
<li><p><strong>环境友好,兼容性强</strong>. 支持 <code>Kotlin</code>语言,配置简单.同时更有 Objective-C 版本<a target="_blank" rel="noopener" href="https://link.segmentfault.com/?enc=kFcekuZqywfYVjlo1v+O/A==.Po7fAPbQTzh97JmGRIgUuf0i7KwSXq3qHUfd91pdHo/vmAGo7YzgQEBPAf3PfWZm">AAChartKit</a>可供使用.</p>
</li>
<li><p><strong>功能强大,类型多样</strong>. 支持<code>柱状图</code> 、<code>条形图</code> 、<code>折线图</code> 、<code>曲线图</code> 、<code>折线填充图</code> 、<code>曲线填充图</code>、<code>雷达图</code>、<code>极地图</code>、<code>扇形图</code>、<code>气泡图</code>、<code>散点图</code>、<code>区域范围图</code>、<code>柱形范围图</code>、<code>面积范围图</code>、<code>面积范围均线图</code>、<code>直方折线图</code>、<code>直方折线填充图</code>、<code>箱线图</code>、<code>瀑布图</code>、<code>热力图</code>、<code>桑基图</code>、<code>金字塔图</code>、<code>漏斗图</code>、等二十几种类型的图形,不可谓之不多.</p>
<span id="more"></span></li>
<li><p><strong>交互式图形动画</strong>. 有着清晰和充满细节的用户交互方式,与此同时,图形渲染<code>动画</code>效果细腻精致,流畅优美.有三十多种以上渲染动画效果可供选择,用户可自由设置渲染图形时的动画时间和动画类型,关于图形渲染动画类型,具体参见<a target="_blank" rel="noopener" href="https://link.segmentfault.com/?enc=hMGV5kE4YZCZiVGwnpqA9A==.RQThVjPh8BJtryRu2rAbURmpAjUpaAB/eWdzq7XP9DKjLvqgrpU84GLTgz/2Xem5Ku0tnC0ILdEHm3dKQUNpAfbs9XwA4KHB4OUqbt2z08d/hjlioTMFFSgUfE1mCUCWoOUae3M/7alRNjRWbPqQlu9tpi6yD3oeB/2SV+FoHt/HjF7A4FDj2Fjz+9l4P6Nz6Nv1EonbgUO0UgYfqXHONhXmS5ZWKwTMMf4L3WbwuAFYQvMRtS/6bGQPWMHddYOoli3WHF4rZtamMmQmHJtuicEkZ/hX004dQEcGaPRzbFgKrhvKGEqSZjhJ1XQXjIOS4HHwzhyl+eUubt6Kf1HH7KOcUGCKaN9LZopAGRxCnxBmB3i7S34brkdB72OlUb+rmHiKP5Z4d7jGZb7uaruD4Q=="> AAChartCore 动画类型</a>.</p>
</li>
<li><p><strong>支持手势缩放</strong>.支持图表的手势缩放和拖动阅览,手势缩放类型具体参见<a target="_blank" rel="noopener" href="https://link.segmentfault.com/?enc=OVrEYga0baple0cNXHWAow==.UaoH0kCzpJTCjnQNv+6CrrlAJOOMQ07pcHknklcG9MIuZ5aXEPxvMxGafYHWT7D3LBxZ2RaNfFo0Nxt1jmZ1FbsJu+W7WxwHooNbNie1PMAy6gpTl3rm2O/yLfiynctaUDe3t/H7x2ut7H23VH1XRKIiLsXTEmU7enAfrio+rdQDSRqu/3HNG/YFQp7XGKR65B/evAODh4Hp7rG+l6kCfoT+wcd7KTaPU5UicROTxTtiIYOxMXyFo3bYiDeYy9nrd4fJGykKF7+cuHa7dcdzp6LH7lpxbHg/46Ont3+iSPZpfTfW2eg/fI0P3QP7XSlvxFhJD56hnRZZ7411MXcHoS6xALR7HGADfk2ObmXlimHB61/uHH55xth6/aPl9uwU"> AAChartCore 手势缩放类型</a>,默认禁用手势缩放功能.</p>
</li>
<li><p><strong>极简主义</strong>. <code>AAChartView + AAChartModel = Chart</code>,在 *<strong>AAChartCore*</strong> 数据可视化图形框架当中,遵循这样一个极简主义公式:<code>图表视图控件 + 图表模型 = 你想要的图表</code>.同另一款强大、精美而又易用的开源图形框架 <a target="_blank" rel="noopener" href="https://link.segmentfault.com/?enc=527MsrsF2+2u/nKWjhoC2g==.tju0atHhmTwEenEy+WMspPR6p4J5LXiHG1x5NRwPGCY/XjVOsAOEIY/ilHinVx2z">AAChartKit</a>完全一致.</p>
</li>
<li><p><strong>链式编程语法</strong>. 支持系统类推荐的 <code>链式编程语法</code>,一行代码即可配置完成 <code>AAChartModel</code>模型对象实例.</p>
</li>
<li><p><strong>简洁清晰,轻便易用</strong>. 最少仅仅需要 <strong>五行代码</strong> 即可完成整个图表的绘制工作(使用链式编程语法配置 <code>AAChartModel</code> 实例对象时,无论你写多少行代码,理论上只能算作是一行).</p>
</li>
<li><p>官方文档：<a target="_blank" rel="noopener" href="https://github.com/AAChartModel/AAChartCore">https://github.com/AAChartModel/AAChartCore</a></p>
</li>
</ul>
<h2 id="2-使用步骤"><a href="#2-使用步骤" class="headerlink" title="2.使用步骤"></a>2.使用步骤</h2><ol>
<li>下载 Demo <code>AAChartCoreDemo</code></li>
<li>将 Demo 中的名为<code>AAChartCore</code> 的文件夹拖入至你的项目之中.</li>
</ol>
<ul>
<li><p>创建视图</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">com.enneagon.aachartcore.AAChartCreator.AAChartView</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:id</span>=<span class="string">&quot;@+id/AAChartView&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_width</span>=<span class="string">&quot;match_parent&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_height</span>=<span class="string">&quot;300dp&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_marginBottom</span>=<span class="string">&quot;100dp&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_marginTop</span>=<span class="string">&quot;12dp&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_marginLeft</span>=<span class="string">&quot;12dp&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_marginRight</span>=<span class="string">&quot;12dp&quot;</span> /&gt;</span>  </span><br></pre></td></tr></table></figure>

<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">AAOptions aaOptions = configureDoubleYAxisChartOptions(dateArray, electArray, countArray);</span><br><span class="line">aaChartView.aa_drawChartWithChartOptions(aaOptions);</span><br></pre></td></tr></table></figure>

<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">private</span> AAOptions <span class="title">configureDoubleYAxisChartOptions</span><span class="params">(String[] bottomArrays, Object[] leftArrays, Object[] rightArrays)</span> </span>&#123;</span><br><span class="line">        <span class="comment">//去掉头顶标题</span></span><br><span class="line">        AATitle aaTitle = <span class="keyword">new</span> AATitle()</span><br><span class="line">                .text(<span class="string">&quot;&quot;</span>);</span><br><span class="line"></span><br><span class="line">        <span class="comment">//底部X轴</span></span><br><span class="line">        AAXAxis bottomAxis = <span class="keyword">new</span> AAXAxis()</span><br><span class="line">                .visible(<span class="keyword">true</span>)</span><br><span class="line">                .min(<span class="number">0f</span>)</span><br><span class="line">                .categories(bottomArrays);</span><br><span class="line"></span><br><span class="line">        <span class="comment">//去掉Y轴标题</span></span><br><span class="line">        AAStyle aaYAxisTitleStyle = <span class="keyword">new</span> AAStyle()</span><br><span class="line">                .color(<span class="string">&quot;#1e90ff&quot;</span>)<span class="comment">//Title font color</span></span><br><span class="line">                .fontSize(<span class="number">50f</span>)<span class="comment">//Title font size</span></span><br><span class="line">                .fontWeight(AAChartFontWeightType.Bold)<span class="comment">//Title font weight</span></span><br><span class="line">                .textOutline(<span class="string">&quot;0px 0px contrast&quot;</span>);</span><br><span class="line"></span><br><span class="line">        <span class="comment">//Y轴刻度风格</span></span><br><span class="line">        AALabels aaYAxisLabels = <span class="keyword">new</span> AALabels()</span><br><span class="line">                .enabled(<span class="keyword">true</span>)<span class="comment">//设置 y 轴是否显示数字</span></span><br><span class="line"><span class="comment">//                .format(&quot;&#123;value:.,0f&#125;&quot;)//让y轴的值完整显示 而不是100000显示为100k,同时单位后缀为°C</span></span><br><span class="line">                .format(<span class="string">&quot;&#123;value&#125;&quot;</span>)</span><br><span class="line">                .style(<span class="keyword">new</span> AAStyle()</span><br><span class="line">                        .color(<span class="string">&quot;#999999&quot;</span>)<span class="comment">//字体颜色</span></span><br><span class="line">                        .fontSize(<span class="number">10f</span>)<span class="comment">//字体大小</span></span><br><span class="line">                        .fontWeight(AAChartFontWeightType.Thin)<span class="comment">//字体粗细</span></span><br><span class="line">                );</span><br><span class="line"></span><br><span class="line">        <span class="comment">//左边Y轴刻度样式</span></span><br><span class="line">        AAYAxis leftAxis = <span class="keyword">new</span> AAYAxis()</span><br><span class="line">                .visible(<span class="keyword">true</span>)</span><br><span class="line">                .allowDecimals(<span class="keyword">false</span>)<span class="comment">//y 轴是否允许显示小数</span></span><br><span class="line">                .max(maxElectValue)</span><br><span class="line">                .labels(aaYAxisLabels)</span><br><span class="line">                .title(<span class="keyword">new</span> AATitle()</span><br><span class="line">                                .text(<span class="string">&quot;&quot;</span>)</span><br><span class="line"><span class="comment">//                        .style(aaYAxisTitleStyle)</span></span><br><span class="line">                );</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="comment">//右边Y轴刻度样式</span></span><br><span class="line">        AAYAxis rightAxis = <span class="keyword">new</span> AAYAxis()</span><br><span class="line">                .visible(<span class="keyword">true</span>)</span><br><span class="line">                .max(maxCountValue)</span><br><span class="line">                .tickInterval(tickInterval)</span><br><span class="line">                .labels(aaYAxisLabels)</span><br><span class="line">                .title(<span class="keyword">new</span> AATitle()</span><br><span class="line">                                .text(<span class="string">&quot;&quot;</span>)</span><br><span class="line"><span class="comment">//                        .style(aaYAxisTitleStyle)</span></span><br><span class="line">                )</span><br><span class="line">                .opposite(<span class="keyword">true</span>);<span class="comment">//将坐标轴显示在对立面</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="comment">//开启浮窗</span></span><br><span class="line">        AATooltip aaTooltip = <span class="keyword">new</span> AATooltip()</span><br><span class="line">                .enabled(<span class="keyword">true</span>)</span><br><span class="line">                .shared(<span class="keyword">true</span>)</span><br><span class="line">                .useHTML(<span class="keyword">true</span>)</span><br><span class="line">                .headerFormat(<span class="string">&quot;&#123;point.key&#125; &quot;</span> + <span class="string">&quot;&lt;br&gt;&quot;</span>)</span><br><span class="line"><span class="comment">//                .pointFormat(&quot;&lt;tr&gt;&lt;td style=\\\&quot;color: &#123;series.color&#125;\\\&quot;&gt;&#123;series.name&#125;: &lt;/td&gt;&quot;</span></span><br><span class="line"><span class="comment">//                        + &quot;&lt;td style=\\\&quot;text-align: right\\\&quot;&gt;&lt;b&gt;&#123;point.y&#125;EUR&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&quot;)</span></span><br><span class="line"><span class="comment">//                .footerFormat(&quot;&lt;/table&gt;&quot;)</span></span><br><span class="line"><span class="comment">//                .valueDecimals(2)</span></span><br><span class="line">                ;</span><br><span class="line"></span><br><span class="line">        AAMarker aaMarker = <span class="keyword">new</span> AAMarker()</span><br><span class="line">                .radius(<span class="number">0f</span>)<span class="comment">//曲线连接点半径，默认是4</span></span><br><span class="line">                .symbol(AAChartSymbolType.Circle)<span class="comment">//曲线点类型：&quot;circle&quot;, &quot;square&quot;, &quot;diamond&quot;, &quot;triangle&quot;,&quot;triangle-down&quot;，默认是&quot;circle&quot;</span></span><br><span class="line"><span class="comment">//                .fillColor(&quot;#ffffff&quot;)//点的填充色(用来设置折线连接点的填充色)</span></span><br><span class="line">                .lineWidth(<span class="number">1f</span>)<span class="comment">//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)</span></span><br><span class="line">                .lineColor(<span class="string">&quot;&quot;</span>);<span class="comment">//外沿线的颜色(用来设置折线连接点的轮廓描边颜色，当值为空字符串时，默认取数据点或数据列的颜色)</span></span><br><span class="line"></span><br><span class="line">        <span class="comment">//左轴线的渐变颜色</span></span><br><span class="line">        Map gradientColorDic1 = AAGradientColor.linearGradient(</span><br><span class="line">                AALinearGradientDirection.ToTop,</span><br><span class="line">                <span class="string">&quot;#0E549F&quot;</span>,</span><br><span class="line">                <span class="string">&quot;#0E549F&quot;</span><span class="comment">//颜色字符串设置支持十六进制类型和 rgba 类型</span></span><br><span class="line">        );</span><br><span class="line"></span><br><span class="line">        <span class="comment">//右轴线的渐变颜色</span></span><br><span class="line">        Map gradientColorDic2 = AAGradientColor.linearGradient(</span><br><span class="line">                AALinearGradientDirection.ToTop,</span><br><span class="line">                <span class="string">&quot;#09C606&quot;</span>,</span><br><span class="line">                <span class="string">&quot;#09C606&quot;</span><span class="comment">//颜色字符串设置支持十六进制类型和 rgba 类型</span></span><br><span class="line">        );</span><br><span class="line"></span><br><span class="line">        Map linearGradientColor = AAGradientColor.linearGradient(</span><br><span class="line">                AALinearGradientDirection.ToBottom,</span><br><span class="line">                <span class="string">&quot;rgba(120,169,221,1)&quot;</span>,<span class="comment">//深粉色, alpha 透明度 1</span></span><br><span class="line">                <span class="string">&quot;rgba(217,228,240,0.1)&quot;</span><span class="comment">//热情的粉红, alpha 透明度 0.1</span></span><br><span class="line">        );<span class="comment">//颜色字符串设置支持十六进制类型和 rgba 类型</span></span><br><span class="line"></span><br><span class="line">            Map linearGradientColor2 = AAGradientColor.linearGradient(</span><br><span class="line">                AALinearGradientDirection.ToBottom,</span><br><span class="line">                <span class="string">&quot;rgba(172,234,171,1)&quot;</span>,<span class="comment">//深粉色, alpha 透明度 1</span></span><br><span class="line">                <span class="string">&quot;rgba(214,244,213,0.1)&quot;</span><span class="comment">//热情的粉红, alpha 透明度 0.1</span></span><br><span class="line">        );<span class="comment">//颜色字符串设置支持十六进制类型和 rgba 类型</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="comment">//左折线风格</span></span><br><span class="line">        AASeriesElement element1 = <span class="keyword">new</span> AASeriesElement()</span><br><span class="line">                .name(<span class="string">&quot;电量&quot;</span>)</span><br><span class="line">                .type(AAChartType.Areaspline)</span><br><span class="line">                .lineWidth(<span class="number">3f</span>)</span><br><span class="line"><span class="comment">//                .fillOpacity(0.25f)</span></span><br><span class="line">                <span class="comment">//          .borderRadius(4)</span></span><br><span class="line"><span class="comment">//                .color(linearGradientColor)</span></span><br><span class="line">                .marker(aaMarker)</span><br><span class="line"></span><br><span class="line">                .color(AAColor.rgbaColor(<span class="number">14</span>,<span class="number">84</span>,<span class="number">159</span>, <span class="number">1f</span>))<span class="comment">//猩红色, alpha 透明度 1</span></span><br><span class="line">                .fillColor(linearGradientColor)</span><br><span class="line"></span><br><span class="line">                .yAxis(<span class="number">1</span>)</span><br><span class="line">                .data(leftArrays);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="comment">//右折线风格</span></span><br><span class="line">        AASeriesElement element2 = <span class="keyword">new</span> AASeriesElement()</span><br><span class="line">                .name(<span class="string">&quot;次数&quot;</span>)</span><br><span class="line">                .type(AAChartType.Areaspline)</span><br><span class="line">                .lineWidth(<span class="number">3f</span>)</span><br><span class="line"><span class="comment">//                .fillOpacity(0.25f)</span></span><br><span class="line">                .color(AAColor.rgbaColor(<span class="number">9</span>,<span class="number">198</span>,<span class="number">6</span>, <span class="number">1f</span>))<span class="comment">//猩红色, alpha 透明度 1</span></span><br><span class="line">                .fillColor(linearGradientColor2)</span><br><span class="line">                .marker(aaMarker)</span><br><span class="line">                .yAxis(<span class="number">0</span>)</span><br><span class="line">                .data(rightArrays);</span><br><span class="line"></span><br><span class="line">        <span class="comment">//去掉底部标题</span></span><br><span class="line">        AALegend aaLegend = <span class="keyword">new</span> AALegend()</span><br><span class="line">                .enabled(<span class="keyword">false</span>);</span><br><span class="line"></span><br><span class="line">        AAOptions aaOptions = <span class="keyword">new</span> AAOptions()</span><br><span class="line"></span><br><span class="line">                .title(aaTitle)</span><br><span class="line">                .colors(<span class="keyword">new</span> String[]&#123;<span class="string">&quot;#0E549F&quot;</span>, <span class="string">&quot;#09C606&quot;</span>&#125;)</span><br><span class="line">                .xAxis(bottomAxis)</span><br><span class="line">                .yAxisArray(<span class="keyword">new</span> AAYAxis[]&#123;rightAxis, leftAxis&#125;)</span><br><span class="line">                .tooltip(aaTooltip)</span><br><span class="line">                .legend(aaLegend)</span><br><span class="line">                .series(<span class="keyword">new</span> AASeriesElement[]&#123;element1, element2&#125;);</span><br><span class="line"></span><br><span class="line">        AACrosshair aaCrosshair = <span class="keyword">new</span> AACrosshair()</span><br><span class="line">                .color(AAColor.LightGray)</span><br><span class="line">                .width(<span class="number">1f</span>)</span><br><span class="line">                .dashStyle(AAChartLineDashStyleType.LongDashDotDot)</span><br><span class="line">                ;</span><br><span class="line">        AAXAxis aaXAxis =  aaOptions.xAxis;</span><br><span class="line">        aaXAxis.crosshair(aaCrosshair);</span><br><span class="line">        <span class="keyword">return</span> aaOptions;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
</ul>
<h2 id="3-使用AAChartCore"><a href="#3-使用AAChartCore" class="headerlink" title="3.使用AAChartCore"></a>3.使用AAChartCore</h2><ul>
<li><p>设置目标布局</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">LinearLayout</span> <span class="attr">xmlns:android</span>=<span class="string">&quot;http://schemas.android.com/apk/res/android&quot;</span></span></span><br><span class="line"><span class="tag">    <span class="attr">xmlns:tools</span>=<span class="string">&quot;http://schemas.android.com/tools&quot;</span></span></span><br><span class="line"><span class="tag">    <span class="attr">android:layout_width</span>=<span class="string">&quot;match_parent&quot;</span></span></span><br><span class="line"><span class="tag">    <span class="attr">android:layout_height</span>=<span class="string">&quot;match_parent&quot;</span></span></span><br><span class="line"><span class="tag">    <span class="attr">tools:context</span>=<span class="string">&quot;.activity.ChartsActivity&quot;</span>&gt;</span></span><br><span class="line"></span><br><span class="line">    <span class="tag">&lt;<span class="name">com.example.shipdemo.AAChartCoreLib.AAChartCoreLib.AAChartCreator.AAChartView</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:id</span>=<span class="string">&quot;@+id/aaChart_view&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_width</span>=<span class="string">&quot;match_parent&quot;</span></span></span><br><span class="line"><span class="tag">        <span class="attr">android:layout_height</span>=<span class="string">&quot;match_parent&quot;</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;/<span class="name">com.example.shipdemo.AAChartCoreLib.AAChartCoreLib.AAChartCreator.AAChartView</span>&gt;</span></span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;/<span class="name">LinearLayout</span>&gt;</span></span><br></pre></td></tr></table></figure></li>
<li><p>在activity或者活动中开始使用</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><span class="line">aaChartView = findViewById(R.id.aaChart_view);</span><br><span class="line"></span><br><span class="line">String[] dateArray = <span class="keyword">new</span> String[]&#123;<span class="string">&quot;6.9&quot;</span>, <span class="string">&quot;7.0&quot;</span>, <span class="string">&quot;9.5&quot;</span>, <span class="string">&quot;14.5&quot;</span>, <span class="string">&quot;18.2&quot;</span>&#125;;</span><br><span class="line">String [] electArray = <span class="keyword">new</span> String[]&#123;<span class="string">&quot;6.9&quot;</span>, <span class="string">&quot;7.0&quot;</span>, <span class="string">&quot;9.5&quot;</span>, <span class="string">&quot;14.5&quot;</span>, <span class="string">&quot;18.2&quot;</span>&#125;;</span><br><span class="line"></span><br><span class="line"><span class="comment">//x轴</span></span><br><span class="line">AAXAxis aaxAxis = <span class="keyword">new</span> AAXAxis()</span><br><span class="line">    .visible(<span class="keyword">true</span>)</span><br><span class="line">    .categories(dateArray)</span><br><span class="line">    .min(<span class="number">0f</span>);</span><br><span class="line"><span class="comment">//y轴刻度风格</span></span><br><span class="line">AALabels aaYAxisLabels = <span class="keyword">new</span> AALabels()</span><br><span class="line">    .enabled(<span class="keyword">true</span>)</span><br><span class="line">    .format(<span class="string">&quot;&#123;value&#125;%&quot;</span>)</span><br><span class="line">    .style(<span class="keyword">new</span> AAStyle()</span><br><span class="line">           .color(<span class="string">&quot;#999999&quot;</span>)<span class="comment">//字体颜色</span></span><br><span class="line">           .fontSize(<span class="number">10f</span>)<span class="comment">//字体大小</span></span><br><span class="line">           .fontWeight(AAChartFontWeightType.Thin));<span class="comment">//字体粗细</span></span><br><span class="line"><span class="comment">//y轴</span></span><br><span class="line">AAYAxis aayAxis = <span class="keyword">new</span> AAYAxis()</span><br><span class="line">    .visible(<span class="keyword">true</span>)</span><br><span class="line">    .allowDecimals(<span class="keyword">true</span>)</span><br><span class="line">    .labels(aaYAxisLabels)</span><br><span class="line">    .categories(electArray);</span><br><span class="line"><span class="comment">//开启浮窗</span></span><br><span class="line">AATooltip aaTooltip = <span class="keyword">new</span> AATooltip()</span><br><span class="line">    .enabled(<span class="keyword">true</span>)</span><br><span class="line">    .shared(<span class="keyword">true</span>)</span><br><span class="line">    .useHTML(<span class="keyword">true</span>)</span><br><span class="line">    .headerFormat(<span class="string">&quot;&#123;point.key&#125; &quot;</span> + <span class="string">&quot;&lt;br&gt;&quot;</span>);</span><br><span class="line"></span><br><span class="line"><span class="comment">//把x,y轴分别添加进去</span></span><br><span class="line">AAOptions aaOptions = <span class="keyword">new</span> AAOptions()</span><br><span class="line">    .xAxis(aaxAxis)</span><br><span class="line">    .yAxis(aayAxis)</span><br><span class="line">    .title(<span class="keyword">new</span> AATitle()</span><br><span class="line">           .text(<span class="string">&quot;热力图&quot;</span>)</span><br><span class="line">           .style(<span class="keyword">new</span> AAStyle()</span><br><span class="line">                  .color(<span class="string">&quot;#bfa&quot;</span>))</span><br><span class="line">          )</span><br><span class="line">    .tooltip(aaTooltip)</span><br><span class="line">    .series(<span class="keyword">new</span> AASeriesElement[]&#123;</span><br><span class="line">        <span class="keyword">new</span> AASeriesElement()</span><br><span class="line">            .name(<span class="string">&quot;轮船1号&quot;</span>)</span><br><span class="line">            .data(<span class="keyword">new</span> Object[]&#123;<span class="number">7.0</span>, <span class="number">6.9</span>, <span class="number">9.5</span>, <span class="number">14.5</span>, <span class="number">18.2</span>, <span class="number">21.5</span>&#125;)&#125;);</span><br><span class="line"></span><br><span class="line">aaChartView.aa_drawChartWithChartOptions(aaOptions);</span><br></pre></td></tr></table></figure></li>
</ul>

      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="http://chaoyxy.cn/data/User/admin/home/desktop/images/alipay.jpg" alt=" 微信支付"/>
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="http://chaoyxy.cn/data/User/admin/home/desktop/images/wechatpay.jpg" alt=" 支付宝"/>
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blogs/tags/Android/" rel="tag"># Android</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blogs/2022/03/10/jetpack%E7%AC%94%E8%AE%B0/" rel="next" title="jetpack笔记">
                <i class="fa fa-chevron-left"></i> jetpack笔记
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blogs/2022/03/13/flutter%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E7%9A%84%E6%90%AD%E5%BB%BAWindows/" rel="prev" title="flutter开发环境的搭建Windows">
                flutter开发环境的搭建Windows <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="disqus_thread">
        <noscript>
          Please enable JavaScript to view the
          <a target="_blank" rel="noopener" href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
        </noscript>
      </div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/blogs/images/cat.jpg"
                alt="" />
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blogs/archives">
              
                  <span class="site-state-item-count">43</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blogs/tags/index.html">
                  <span class="site-state-item-count">10</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://gitee.com/louchaoyy" target="_blank" title="Gitee">
                      
                        <i class="fa fa-fw fa-gitee"></i>Gitee</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="louchao@louchaoyy.cn" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link"><span class="nav-number">1.</span> <span class="nav-text">AAChartCore的使用
</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#1-%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E7%94%A8AAChartCore"><span class="nav-number">2.</span> <span class="nav-text">1.为什么要用AAChartCore</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-%E4%BD%BF%E7%94%A8%E6%AD%A5%E9%AA%A4"><span class="nav-number">3.</span> <span class="nav-text">2.使用步骤</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-%E4%BD%BF%E7%94%A8AAChartCore"><span class="nav-number">4.</span> <span class="nav-text">3.使用AAChartCore</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Chaoyxy</span>

  
</div>

<span id="busuanzi_container_site_pv">
    本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<!--

  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.3</div>
-->




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/blogs/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blogs/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/motion.js?v=5.1.3"></script>



  
  


  <script type="text/javascript" src="/blogs/js/src/affix.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/schemes/pisces.js?v=5.1.3"></script>



  
  <script type="text/javascript" src="/blogs/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/blogs/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/blogs/js/src/bootstrap.js?v=5.1.3"></script>



  


  

    
      <script id="dsq-count-scr" src="https://Chaoyxy.disqus.com/count.js" async></script>
    

    
      <script type="text/javascript">
        var disqus_config = function () {
          this.page.url = 'https://louchaoyy.gitee.io/blogs/2022/03/11/AAChartCore%E7%9A%84%E4%BD%BF%E7%94%A8/';
          this.page.identifier = '2022/03/11/AAChartCore的使用/';
          this.page.title = 'AAChartCore的使用';
        };
        var d = document, s = d.createElement('script');
        s.src = 'https://Chaoyxy.disqus.com/embed.js';
        s.setAttribute('data-timestamp', '' + +new Date());
        (d.head || d.body).appendChild(s);
      </script>
    

  




	





  














  





  

  

  

  
  

  

  

  

</body>
</html>
